﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductMonitor.Models
{
    public class MachineModel
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 状态颜色
        /// </summary>
        public string StatusColor { get; set; }

        /// <summary>
        /// 计划任务数量
        /// </summary>
        public int PlanCount { get; set; }

        /// <summary>
        /// 已完成数量
        /// </summary>
        public int FinshedCount { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string OrderNO { get; set; }

        /// <summary>
        /// 完成的数量--百分比
        /// </summary>
        public double Percent { get => FinshedCount * 100.0 / PlanCount; }
    }
}
